package main.framework.resource;

import main.framework.exception.ResourceMethodExecutionException;

/**
 * This abstract class is the base for all kind of resource method classes which modifies data 
 * (HTTP methods: PUT, POST, DELETE)
 */
public abstract class DataSetterResourceMethod implements ResourceMethod {

	protected ResourceData data;

	@Override
	public abstract void execute(Resource resource) throws ResourceMethodExecutionException;
	
	/**
	 * Sets the data which should be sent by the execution of the resource method.
	 */
	public void setData(ResourceData data){
		this.data = data;
	}

}
